﻿using GiaoTrinhEPU.Repositories.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface IImportRepository
    {
        void CreateImport(Import item);
        void UpdateImport(Import item);
        void DeleteImport(int id);

        IEnumerable<ImportModel> ListImports(bool cacheEnabled = true);
        Import GetImportById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
